<div>

    <h3>状态开关</h3>

    <!-- input starts -->
    <div class="row">
        <div class="col-md-12">
            <form>
                <div class="row">
                    <div class="col-md-6">
                        <button ng-click="serverStatus(1,msg)" class="btn btn-primary">查询</button>
                        <button ng-click="serverStatus(2,msg)" class="btn btn-info">开启</button>
                        <button ng-click="serverStatus(3,msg)" class="btn btn-danger">关闭</button>
                        <hr />
                    </div>
                </div>
            </form>
        </div>
    </div>

    <h3 ng-show="dataView">
        开启状态
    </h3>

    <!-- main data part starts -->
    <div class="row" ng-show="dataView">

        <!-- single line data display starts -->
        <div class="col-md-6" >
            <div style="min-width:20%; top:100px;">
                <table class="table table-striped">
                    <colgroup>
                        <col width="30%">
                        <col width="70%">
                    </colgroup>
                    <tbody>
                    <tr ng-repeat="(column, value) in dataView">
                        <td>{{ column }}</td>
                        <td>{{ value }}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- single line data display ends -->

    </div>
    <!-- input ends -->

</div>